package boot.spring.controller;

import org.apache.shiro.authz.annotation.RequiresRoles;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @RequiresRoles("user")
    @GetMapping("/test")
    public String test(){

        return "test";
    }

}
